home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-11-02 | 8.1 KB | [TEXT/MSET] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: Dialog+
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Nov 2 12:01:31 1994, modified Wed Nov 2 12:01:31 1994, creator 'MSET', type ASCII, 7778 bytes "Dialog+" , at 0x1ee2 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MSET] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 44 69 61 6c 6f 67 | 2b 00 00 00 00 00 00 00 |..Dialog|+.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 53 45 | 54 01 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 1e 62 00 | 00 01 1e aa dd 76 6b aa |......b.|.....vk.|
|00000060| dd 76 6b 00 00 08 00 00 | 00 00 00 00 00 00 00 00 |.vk.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bf 22 00 00 |........|....."..|
|00000080| 5c 20 44 69 61 6c 6f 67 | 2b 20 2d 20 4d 52 48 20 |\ Dialog|+ - MRH |
|00000090| 41 70 72 69 6c 20 38 37 | 2e 0d 0d 5c 20 54 68 69 |April 87|...\ Thi|
|000000a0| 73 20 73 75 62 63 6c 61 | 73 73 20 6f 66 20 44 69 |s subcla|ss of Di|
|000000b0| 61 6c 6f 67 20 69 6d 70 | 6c 65 6d 65 6e 74 73 20 |alog imp|lements |
|000000c0| 6d 6f 64 65 6c 65 73 73 | 20 64 69 61 6c 6f 67 73 |modeless| dialogs|
|000000d0| 2c 20 70 6f 70 75 70 20 | 6d 65 6e 75 20 73 75 70 |, popup |menu sup|
|000000e0| 70 6f 72 74 2c 0d 5c 20 | 61 6e 64 20 6f 74 68 65 |port,.\ |and othe|
|000000f0| 72 20 74 68 69 6e 67 73 | 2e 0d 0d 5c 20 4e 6f 76 |r things|...\ Nov|
|00000100| 20 20 38 37 20 6d 72 68 | 09 41 64 64 65 64 20 65 | 87 mrh|.Added e|
|00000110| 6e 61 62 6c 69 6e 67 20 | 61 6e 64 20 64 69 73 61 |nabling |and disa|
|00000120| 62 6c 69 6e 67 20 6f 66 | 20 64 69 61 6c 6f 67 73 |bling of| dialogs|
|00000130| 2e 0d 5c 20 4a 75 6c 79 | 20 39 31 20 6d 72 68 09 |..\ July| 91 mrh.|
|00000140| 4d 69 67 72 61 74 65 64 | 20 73 6f 6d 65 20 6d 65 |Migrated| some me|
|00000150| 74 68 6f 64 73 20 74 6f | 20 44 69 61 6c 6f 67 20 |thods to| Dialog |
|00000160| 28 6e 6f 77 20 69 6e 20 | 61 20 6d 6f 64 75 6c 65 |(now in |a module|
|00000170| 29 2e 0d 0d 6e 65 65 64 | 09 64 69 61 6c 6f 67 0d |)...need|.dialog.|
|00000180| 0d 6f 62 6a 50 74 72 09 | 44 4c 47 2d 43 48 41 49 |.objPtr.|DLG-CHAI|
|00000190| 4e 09 5c 20 48 65 61 64 | 20 6f 66 20 63 68 61 69 |N.\ Head| of chai|
|000001a0| 6e 20 6f 66 20 6f 70 65 | 6e 20 64 69 61 6c 6f 67 |n of ope|n dialog|
|000001b0| 73 2e 20 20 57 68 65 6e | 0d 09 09 09 5c 20 44 69 |s. When|....\ Di|
|000001c0| 61 6c 6f 67 53 65 6c 65 | 63 74 20 72 65 74 75 72 |alogSele|ct retur|
|000001d0| 6e 73 20 54 52 55 45 2c | 20 77 65 20 73 65 61 72 |ns TRUE,| we sear|
|000001e0| 63 68 20 74 68 69 73 0d | 09 09 09 5c 20 63 68 61 |ch this.|...\ cha|
|000001f0| 69 6e 20 74 6f 20 66 69 | 6e 64 20 77 68 69 63 68 |in to fi|nd which|
|00000200| 20 77 68 69 63 68 20 6f | 6e 65 20 77 61 73 20 68 | which o|ne was h|
|00000210| 69 74 2e 0d 0d 6f 62 6a | 50 74 72 09 41 43 54 49 |it...obj|Ptr.ACTI|
|00000220| 56 45 5f 44 4c 47 0d 6f | 62 6a 50 74 72 09 54 48 |VE_DLG.o|bjPtr.TH|
|00000230| 49 53 5f 44 4c 47 09 5c | 20 54 68 65 73 65 20 33 |IS_DLG.\| These 3|
|00000240| 20 6f 62 6a 50 74 72 73 | 20 77 69 6c 6c 20 62 65 | objPtrs| will be|
|00000250| 20 73 65 74 20 74 6f 20 | 63 6c 61 73 73 20 44 69 | set to |class Di|
|00000260| 61 6c 6f 67 2b 2e 0d 0d | 76 61 72 09 44 50 54 52 |alog+...|var.DPTR|
|00000270| 09 09 63 6c 65 61 72 3a | 20 64 70 74 72 0d 0d 68 |..clear:| dptr..h|
|00000280| 61 6e 64 6c 65 09 54 45 | 48 44 4c 0d 5c 20 54 68 |andle.TE|HDL.\ Th|
|00000290| 69 73 20 69 73 20 61 20 | 63 6f 70 79 20 6f 66 20 |is is a |copy of |
|000002a0| 74 68 65 20 74 65 78 74 | 48 20 66 69 65 6c 64 20 |the text|H field |
|000002b0| 6f 66 20 61 20 64 69 61 | 6c 6f 67 2c 20 69 66 20 |of a dia|log, if |
|000002c0| 61 20 64 69 61 6c 6f 67 | 20 77 69 6e 64 6f 77 0d |a dialog| window.|
|000002d0| 5c 20 69 73 20 66 72 6f | 6e 74 6d 6f 73 74 2e 20 |\ is fro|ntmost. |
|000002e0| 20 4e 69 6c 20 6f 74 68 | 65 72 77 69 73 65 2e 20 | Nil oth|erwise. |
|000002f0| 20 54 68 69 73 20 61 6c | 6c 6f 77 73 20 75 73 20 | This al|lows us |
|00000300| 74 6f 20 63 61 6c 6c 20 | 54 45 69 64 6c 65 20 69 |to call |TEidle i|
|00000310| 6e 20 74 68 65 0d 5c 20 | 6d 61 69 6e 20 65 76 65 |n the.\ |main eve|
|00000320| 6e 74 20 6c 6f 6f 70 20 | 77 68 65 6e 20 6e 65 63 |nt loop |when nec|
|00000330| 65 73 73 61 72 79 2c 20 | 61 73 20 72 65 71 75 69 |essary, |as requi|
|00000340| 72 65 64 20 66 6f 72 20 | 74 68 65 20 69 6e 73 65 |red for |the inse|
|00000350| 72 74 69 6f 6e 20 70 6f | 69 6e 74 0d 5c 20 74 6f |rtion po|int.\ to|
|00000360| 20 62 6c 69 6e 6b 2e 0d | 0d 68 61 6e 64 6c 65 09 | blink..|.handle.|
|00000370| 53 61 76 65 54 45 68 64 | 6c 09 09 5c 20 53 61 76 |SaveTEhd|l..\ Sav|
|00000380| 65 73 20 54 45 68 64 6c | 20 77 68 69 6c 65 20 77 |es TEhdl| while w|
|00000390| 65 27 72 65 20 73 75 73 | 70 65 6e 64 65 64 0d 0d |e're sus|pended..|
|000003a0| 24 20 41 30 20 20 63 6f | 6e 73 74 61 6e 74 09 54 |$ A0 co|nstant.T|
|000003b0| 45 58 54 48 5f 4f 46 46 | 53 0d 0d 3a 20 53 45 54 |EXTH_OFF|S..: SET|
|000003c0| 5f 54 45 48 44 4c 09 5c | 20 28 20 77 6e 64 2d 70 |_TEHDL.\| ( wnd-p|
|000003d0| 74 72 20 2d 2d 20 29 0d | 09 09 5c 20 77 6e 64 2d |tr -- ).|..\ wnd-|
|000003e0| 70 74 72 20 69 73 20 74 | 68 65 20 28 72 65 6c 61 |ptr is t|he (rela|
|000003f0| 74 69 76 65 29 20 61 64 | 64 72 65 73 73 20 6f 66 |tive) ad|dress of|
|00000400| 20 74 68 65 20 64 69 61 | 6c 6f 67 27 73 20 77 69 | the dia|log's wi|
|00000410| 6e 64 6f 77 2c 0d 09 09 | 5c 20 77 68 69 63 68 20 |ndow,...|\ which |
|00000420| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 |is the s|ame as t|
|00000430| 68 65 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |he addre|ss of th|
|00000440| 65 20 64 69 61 6c 6f 67 | 20 72 65 63 6f 72 64 20 |e dialog| record |
|00000450| 69 74 73 65 6c 66 2c 20 | 0d 09 09 5c 20 61 73 20 |itself, |...\ as |
|00000460| 74 68 65 20 77 69 6e 64 | 6f 77 20 66 69 65 6c 64 |the wind|ow field|
|00000470| 20 63 6f 6d 65 73 20 66 | 69 72 73 74 2e 20 20 54 | comes f|irst. T|
|00000480| 68 65 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |he corre|sponding|
|00000490| 0d 09 09 5c 20 61 62 73 | 6f 6c 75 74 65 20 61 64 |...\ abs|olute ad|
|000004a0| 64 72 65 73 73 20 69 73 | 20 63 6f 6e 74 61 69 6e |dress is| contain|
|000004b0| 65 64 20 69 6e 20 74 68 | 65 20 69 76 61 72 20 64 |ed in th|e ivar d|
|000004c0| 6c 67 50 74 72 2e 0d 0d | 09 74 65 78 74 48 5f 6f |lgPtr...|.textH_o|
|000004d0| 66 66 73 20 2b 20 20 40 | 20 20 3f 64 75 70 20 49 |ffs + @| ?dup I|
|000004e0| 46 20 20 70 75 74 3a 20 | 74 65 48 64 6c 20 20 45 |F put: |teHdl E|
|000004f0| 4c 53 45 20 20 63 6c 65 | 61 72 3a 20 74 65 48 64 |LSE cle|ar: teHd|
|00000500| 6c 20 20 54 48 45 4e 20 | 20 3b 0d 0d 0d 3a 63 6c |l THEN | ;...:cl|
|00000510| 61 73 73 20 20 44 49 41 | 4c 4f 47 2b 20 20 73 75 |ass DIA|LOG+ su|
|00000520| 70 65 72 7b 20 64 69 61 | 6c 6f 67 20 7d 0d 72 65 |per{ dia|log }.re|
|00000530| 63 6f 72 64 0d 7b 09 70 | 74 72 09 09 46 2d 4c 49 |cord.{.p|tr..F-LI|
|00000540| 4e 4b 09 09 09 09 5c 20 | 46 6f 72 77 61 72 64 20 |NK....\ |Forward |
|00000550| 6c 69 6e 6b 20 2d 20 5e | 64 6c 67 0d 09 70 74 72 |link - ^|dlg..ptr|
|00000560| 09 09 42 2d 4c 49 4e 4b | 09 09 09 09 5c 20 42 61 |..B-LINK|....\ Ba|
|00000570| 63 6b 77 61 72 64 20 6c | 69 6e 6b 20 64 69 74 74 |ckward l|ink ditt|
|00000580| 6f 0d 09 62 6f 6f 6c 09 | 45 4e 41 42 4c 45 44 3f |o..bool.|ENABLED?|
|00000590| 0d 09 70 74 72 09 09 50 | 55 4d 2d 4c 49 4e 4b 09 |..ptr..P|UM-LINK.|
|000005a0| 09 09 5c 20 4c 69 6e 6b | 20 74 6f 20 61 6e 79 20 |..\ Link| to any |
|000005b0| 70 6f 70 2d 75 70 20 6d | 65 6e 75 73 0d 7d 0d 0d |pop-up m|enus.}..|
|000005c0| 27 20 64 6c 67 2d 63 68 | 61 69 6e 09 09 73 65 74 |' dlg-ch|ain..set|
|000005d0| 5f 74 6f 5f 63 6c 61 73 | 73 20 20 64 69 61 6c 6f |_to_clas|s dialo|
|000005e0| 67 2b 0d 27 20 61 63 74 | 69 76 65 5f 64 6c 67 09 |g+.' act|ive_dlg.|
|000005f0| 73 65 74 5f 74 6f 5f 63 | 6c 61 73 73 20 20 64 69 |set_to_c|lass di|
|00000600| 61 6c 6f 67 2b 0d 27 20 | 74 68 69 73 5f 64 6c 67 |alog+.' |this_dlg|
|00000610| 09 09 73 65 74 5f 74 6f | 5f 63 6c 61 73 73 20 20 |..set_to|_class |
|00000620| 64 69 61 6c 6f 67 2b 0d | 0d 0d 3a 6d 20 46 2d 4c |dialog+.|..:m F-L|
|00000630| 49 4e 4b 3a 09 5c 20 28 | 20 2d 2d 20 5e 64 6c 67 |INK:.\ (| -- ^dlg|
|00000640| 20 29 0d 09 67 65 74 3a | 20 66 2d 6c 69 6e 6b 20 | )..get:| f-link |
|00000650| 20 3b 6d 0d 0d 5c 20 28 | 20 5e 64 6c 67 20 2d 2d | ;m..\ (| ^dlg --|
|00000660| 20 29 0d 3a 6d 20 53 45 | 54 2d 46 2d 4c 49 4e 4b | ).:m SE|T-F-LINK|
|00000670| 3a 09 09 70 75 74 3a 20 | 66 2d 6c 69 6e 6b 20 20 |:..put: |f-link |
|00000680| 3b 6d 0d 3a 6d 20 53 45 | 54 2d 42 2d 4c 49 4e 4b |;m.:m SE|T-B-LINK|
|00000690| 3a 09 09 70 75 74 3a 20 | 62 2d 6c 69 6e 6b 20 20 |:..put: |b-link |
|000006a0| 3b 6d 0d 0d 5c 20 28 20 | 2d 2d 20 5e 64 6c 67 20 |;m..\ ( |-- ^dlg |
|000006b0| 29 0d 3a 6d 20 50 55 4d | 2d 4c 49 4e 4b 3a 09 09 |).:m PUM|-LINK:..|
|000006c0| 67 65 74 3a 20 50 55 4d | 2d 6c 69 6e 6b 20 20 3b |get: PUM|-link ;|
|000006d0| 6d 0d 3a 6d 20 53 45 54 | 2d 50 55 4d 2d 4c 49 4e |m.:m SET|-PUM-LIN|
|000006e0| 4b 3a 09 70 75 74 3a 20 | 50 55 4d 2d 6c 69 6e 6b |K:.put: |PUM-link|
|000006f0| 20 20 3b 6d 0d 0d 0d 3a | 6d 20 47 45 54 4e 45 57 | ;m...:|m GETNEW|
|00000700| 3a 0d 09 6e 69 6c 3f 3a | 20 64 6c 67 50 74 72 20 |:..nil?:| dlgPtr |
|00000710| 20 30 45 58 49 54 09 09 | 09 09 5c 20 4f 75 74 20 | 0EXIT..|..\ Out |
|00000720| 69 66 20 6f 70 65 6e 20 | 61 6c 72 65 61 64 79 0d |if open |already.|
|00000730| 09 64 6c 67 2d 63 68 61 | 69 6e 20 20 70 75 74 3a |.dlg-cha|in put:|
|00000740| 20 66 2d 6c 69 6e 6b 0d | 09 64 6c 67 2d 63 68 61 | f-link.|.dlg-cha|
|00000750| 69 6e 20 6e 69 6c 50 20 | 3d 0d 09 4e 49 46 20 20 |in nilP |=..NIF |
|00000760| 5e 62 61 73 65 20 20 20 | 73 65 74 2d 62 2d 6c 69 |^base |set-b-li|
|00000770| 6e 6b 3a 20 64 6c 67 2d | 63 68 61 69 6e 20 20 54 |nk: dlg-|chain T|
|00000780| 48 45 4e 0d 09 5e 62 61 | 73 65 20 2d 3e 20 64 6c |HEN..^ba|se -> dl|
|00000790| 67 2d 63 68 61 69 6e 20 | 20 20 63 6c 65 61 72 3a |g-chain | clear:|
|000007a0| 20 62 2d 6c 69 6e 6b 0d | 09 67 65 74 6e 65 77 3a | b-link.|.getnew:|
|000007b0| 20 73 75 70 65 72 0d 09 | 67 65 74 3a 20 64 6c 67 | super..|get: dlg|
|000007c0| 50 74 72 20 20 73 65 74 | 5f 74 65 48 64 6c 0d 09 |Ptr set|_teHdl..|
|000007d0| 30 20 2d 3e 20 61 63 74 | 57 20 20 3b 6d 09 09 09 |0 -> act|W ;m...|
|000007e0| 5c 20 46 72 6f 6e 74 20 | 77 69 6e 64 6f 77 20 69 |\ Front |window i|
|000007f0| 73 20 61 20 64 69 61 6c | 6f 67 2c 20 6e 6f 74 20 |s a dial|og, not |
|00000800| 61 20 4d 6f 70 73 20 77 | 69 6e 64 6f 77 0d 0d 0d |a Mops w|indow...|
|00000810| 3a 6d 20 43 4c 4f 53 45 | 3a 0d 09 6e 69 6c 3f 3a |:m CLOSE|:..nil?:|
|00000820| 20 64 6c 67 50 74 72 20 | 20 3f 45 58 49 54 09 09 | dlgPtr | ?EXIT..|
|00000830| 09 09 5c 20 4f 75 74 20 | 69 66 20 63 6c 6f 73 65 |..\ Out |if close|
|00000840| 64 20 61 6c 72 65 61 64 | 79 0d 09 6e 69 6c 3f 3a |d alread|y..nil?:|
|00000850| 20 66 2d 6c 69 6e 6b 0d | 09 4e 49 46 20 20 67 65 | f-link.|.NIF ge|
|00000860| 74 3a 20 62 2d 6c 69 6e | 6b 20 20 67 65 74 3a 20 |t: b-lin|k get: |
|00000870| 66 2d 6c 69 6e 6b 20 20 | 73 65 74 2d 62 2d 6c 69 |f-link |set-b-li|
|00000880| 6e 6b 3a 20 64 69 61 6c | 6f 67 2b 20 20 54 48 45 |nk: dial|og+ THE|
|00000890| 4e 0d 09 6e 69 6c 3f 3a | 20 62 2d 6c 69 6e 6b 0d |N..nil?:| b-link.|
|000008a0| 09 4e 49 46 09 09 67 65 | 74 3a 20 66 2d 6c 69 6e |.NIF..ge|t: f-lin|
|000008b0| 6b 20 20 67 65 74 3a 20 | 62 2d 6c 69 6e 6b 20 20 |k get: |b-link |
|000008c0| 73 65 74 2d 66 2d 6c 69 | 6e 6b 3a 20 64 69 61 6c |set-f-li|nk: dial|
|000008d0| 6f 67 2b 0d 09 45 4c 53 | 45 09 67 65 74 3a 20 66 |og+..ELS|E.get: f|
|000008e0| 2d 6c 69 6e 6b 20 20 2d | 3e 20 64 6c 67 2d 63 68 |-link -|> dlg-ch|
|000008f0| 61 69 6e 0d 09 54 48 45 | 4e 0d 09 63 6c 65 61 72 |ain..THE|N..clear|
|00000900| 3a 20 74 65 48 64 6c 20 | 20 6e 69 6c 50 20 2d 3e |: teHdl | nilP ->|
|00000910| 20 61 63 74 69 76 65 5f | 64 6c 67 20 20 63 6c 6f | active_|dlg clo|
|00000920| 73 65 3a 20 73 75 70 65 | 72 20 20 3b 6d 0d 0d 3a |se: supe|r ;m..:|
|00000930| 6d 20 45 58 45 43 3a 09 | 09 5c 20 28 20 69 6e 64 |m EXEC:.|.\ ( ind|
|00000940| 65 78 20 2d 2d 20 29 0d | 09 67 65 74 3a 20 65 6e |ex -- ).|.get: en|
|00000950| 61 62 6c 65 64 3f 20 20 | 69 66 20 20 65 78 65 63 |abled? |if exec|
|00000960| 3a 20 73 75 70 65 72 20 | 20 65 6c 73 65 20 20 64 |: super | else d|
|00000970| 72 6f 70 20 20 74 68 65 | 6e 20 20 20 3b 6d 0d 0d |rop the|n ;m..|
|00000980| 3a 6d 20 45 4e 41 42 4c | 45 3a 09 09 74 72 75 65 |:m ENABL|E:..true|
|00000990| 20 20 70 75 74 3a 20 65 | 6e 61 62 6c 65 64 3f 20 | put: e|nabled? |
|000009a0| 20 3b 6d 0d 0d 3a 6d 20 | 44 49 53 41 42 4c 45 3a | ;m..:m |DISABLE:|
|000009b0| 09 09 66 61 6c 73 65 20 | 20 70 75 74 3a 20 65 6e |..false | put: en|
|000009c0| 61 62 6c 65 64 3f 20 20 | 3b 6d 0d 0d 3a 6d 20 45 |abled? |;m..:m E|
|000009d0| 4e 41 42 4c 45 44 3f 3a | 09 67 65 74 3a 20 65 6e |NABLED?:|.get: en|
|000009e0| 61 62 6c 65 64 3f 20 20 | 3b 6d 0d 0d 0d 3a 6d 20 |abled? |;m...:m |
|000009f0| 43 4c 41 53 53 49 4e 49 | 54 3a 09 65 6e 61 62 6c |CLASSINI|T:.enabl|
|00000a00| 65 3a 20 73 65 6c 66 20 | 20 20 3b 6d 0d 0d 3a 6d |e: self | ;m..:m|
|00000a10| 20 44 55 4d 50 3a 0d 09 | 5e 62 61 73 65 20 20 2e | DUMP:..|^base .|
|00000a20| 68 20 20 33 20 73 70 61 | 63 65 73 20 20 6e 69 6c |h 3 spa|ces nil|
|00000a30| 3f 3a 20 64 6c 67 50 74 | 72 20 20 69 66 20 20 2e |?: dlgPt|r if .|
|00000a40| 22 20 6e 6f 74 20 22 20 | 20 74 68 65 6e 20 20 2e |" not " | then .|
|00000a50| 22 20 6f 70 65 6e 22 0d | 09 33 20 73 70 61 63 65 |" open".|.3 space|
|00000a60| 73 20 20 67 65 74 3a 20 | 65 6e 61 62 6c 65 64 3f |s get: |enabled?|
|00000a70| 0d 09 69 66 20 20 20 2e | 22 20 65 6e 61 62 6c 65 |..if .|" enable|
|00000a80| 64 22 20 20 20 65 6c 73 | 65 20 20 20 2e 22 20 64 |d" els|e ." d|
|00000a90| 69 73 61 62 6c 65 64 22 | 20 20 20 74 68 65 6e 20 |isabled"| then |
|00000aa0| 20 20 63 72 0d 09 67 65 | 74 3a 20 66 2d 6c 69 6e | cr..ge|t: f-lin|
|00000ab0| 6b 20 2e 22 20 66 2d 6c | 69 6e 6b 20 22 20 2e 68 |k ." f-l|ink " .h|
|00000ac0| 20 20 67 65 74 3a 20 62 | 2d 6c 69 6e 6b 20 2e 22 | get: b|-link ."|
|00000ad0| 20 62 2d 6c 69 6e 6b 20 | 22 20 2e 68 0d 09 2e 22 | b-link |" .h..."|
|00000ae0| 20 20 64 6c 67 50 74 72 | 20 22 20 20 67 65 74 3a | dlgPtr| " get:|
|00000af0| 20 64 6c 67 50 74 72 20 | 2e 68 20 20 63 72 0d 09 | dlgPtr |.h cr..|
|00000b00| 64 6c 67 2d 63 68 61 69 | 6e 20 2e 22 20 64 6c 67 |dlg-chai|n ." dlg|
|00000b10| 2d 63 68 61 69 6e 20 22 | 20 2e 68 20 20 20 3b 6d |-chain "| .h ;m|
|00000b20| 0d 0d 3b 63 6c 61 73 73 | 0d 0d 5c 09 09 09 09 3d |..;class|..\....=|
|00000b30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000b40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000b50| 3d 3d 3d 3d 0d 0d 3a 20 | 46 49 4e 44 2d 44 4c 47 |====..: |FIND-DLG|
|00000b60| 20 20 7b 20 64 6c 70 74 | 72 20 2d 2d 20 62 20 7d | { dlpt|r -- b }|
|00000b70| 0d 09 64 6c 67 2d 63 68 | 61 69 6e 20 2d 3e 20 74 |..dlg-ch|ain -> t|
|00000b80| 68 69 73 5f 64 6c 67 0d | 09 42 45 47 49 4e 0d 09 |his_dlg.|.BEGIN..|
|00000b90| 09 74 68 69 73 5f 64 6c | 67 20 6e 69 6c 50 20 3d |.this_dl|g nilP =|
|00000ba0| 20 20 49 46 20 20 66 61 | 6c 73 65 20 20 45 58 49 | IF fa|lse EXI|
|00000bb0| 54 20 20 54 48 45 4e 0d | 09 09 64 6c 67 50 74 72 |T THEN.|..dlgPtr|
|00000bc0| 3a 20 74 68 69 73 5f 64 | 6c 67 20 20 64 6c 70 74 |: this_d|lg dlpt|
|00000bd0| 72 20 3d 0d 09 09 49 46 | 20 20 74 72 75 65 20 20 |r =...IF| true |
|00000be0| 45 58 49 54 20 20 54 48 | 45 4e 0d 09 09 66 2d 6c |EXIT TH|EN...f-l|
|00000bf0| 69 6e 6b 3a 20 74 68 69 | 73 5f 64 6c 67 20 20 2d |ink: thi|s_dlg -|
|00000c00| 3e 20 74 68 69 73 5f 64 | 6c 67 0d 09 41 47 41 49 |> this_d|lg..AGAI|
|00000c10| 4e 20 20 3b 0d 0d 0d 3a | 20 44 4c 47 50 4f 52 54 |N ;...:| DLGPORT|
|00000c20| 09 09 5c 20 53 65 74 73 | 20 74 68 65 20 63 75 72 |..\ Sets| the cur|
|00000c30| 72 65 6e 74 20 67 72 61 | 66 70 6f 72 74 20 74 6f |rent gra|fport to|
|00000c40| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 64 69 61 | the cur|rent dia|
|00000c50| 6c 6f 67 2e 0d 09 64 6c | 67 50 74 72 3a 20 74 68 |log...dl|gPtr: th|
|00000c60| 69 73 5f 64 6c 67 20 20 | 63 61 6c 6c 20 73 65 74 |is_dlg |call set|
|00000c70| 50 6f 72 74 20 20 3b 0d | 0d 0d 30 09 76 61 6c 75 |Port ;.|..0.valu|
|00000c80| 65 09 45 58 45 43 3f 0d | 0d 3a 20 4d 4c 44 2d 45 |e.EXEC?.|.: MLD-E|
|00000c90| 56 54 0d 09 77 6f 72 64 | 30 20 20 66 45 76 65 6e |VT..word|0 fEven|
|00000ca0| 74 20 20 61 64 64 72 3a | 20 64 70 74 72 20 20 61 |t addr:| dptr a|
|00000cb0| 64 64 72 3a 20 74 68 65 | 49 74 65 6d 0d 09 63 61 |ddr: the|Item..ca|
|00000cc0| 6c 6c 20 44 69 61 6c 6f | 67 53 65 6c 65 63 74 20 |ll Dialo|gSelect |
|00000cd0| 20 69 2d 3e 6c 20 20 30 | 3c 3e 20 20 2d 3e 20 65 | i->l 0|<> -> e|
|00000ce0| 78 65 63 3f 0d 09 67 65 | 74 3a 20 64 70 74 72 20 |xec?..ge|t: dptr |
|00000cf0| 20 66 69 6e 64 2d 64 6c | 67 20 20 30 45 58 49 54 | find-dl|g 0EXIT|
|00000d00| 0d 09 65 78 65 63 3f 20 | 20 30 45 58 49 54 0d 09 |..exec? | 0EXIT..|
|00000d10| 67 65 74 3a 20 74 68 65 | 49 74 65 6d 20 20 31 2d |get: the|Item 1-|
|00000d20| 20 20 65 78 65 63 3a 20 | 74 68 69 73 5f 64 6c 67 | exec: |this_dlg|
|00000d30| 20 20 3b 0d 0d 0d 3a 20 | 43 4c 4f 53 45 2d 44 4c | ;...: |CLOSE-DL|
|00000d40| 47 09 09 5c 20 28 20 64 | 6c 70 74 72 20 2d 2d 20 |G..\ ( d|lptr -- |
|00000d50| 29 0d 09 66 69 6e 64 2d | 64 6c 67 20 20 30 65 78 |)..find-|dlg 0ex|
|00000d60| 69 74 0d 09 63 6c 6f 73 | 65 3a 20 74 68 69 73 5f |it..clos|e: this_|
|00000d70| 64 6c 67 20 20 3b 0d 0d | 3a 20 49 53 5f 44 4c 47 |dlg ;..|: IS_DLG|
|00000d80| 5f 45 56 54 3f 09 5c 20 | 28 20 2d 2d 20 62 20 29 |_EVT?.\ |( -- b )|
|00000d90| 0d 09 77 6f 72 64 30 20 | 20 66 65 76 65 6e 74 20 |..word0 | fevent |
|00000da0| 20 63 61 6c 6c 20 49 73 | 44 69 61 6c 6f 67 45 76 | call Is|DialogEv|
|00000db0| 65 6e 74 20 20 69 2d 3e | 6c 20 20 3b 0d 0d 0d 5c |ent i->|l ;...\|
|00000dc0| 20 3f 54 45 69 64 6c 65 | 20 63 61 6c 6c 73 20 54 | ?TEidle| calls T|
|00000dd0| 45 69 64 6c 65 20 69 66 | 20 61 20 6d 6f 64 65 6c |Eidle if| a model|
|00000de0| 65 73 73 20 64 69 61 6c | 6f 67 20 77 69 74 68 20 |ess dial|og with |
|00000df0| 61 20 54 45 20 66 69 65 | 6c 64 20 69 73 20 63 75 |a TE fie|ld is cu|
|00000e00| 72 72 65 6e 74 2e 0d 5c | 20 57 65 20 68 61 76 65 |rrent..\| We have|
|00000e10| 20 74 6f 20 64 6f 20 74 | 68 69 73 20 61 74 20 72 | to do t|his at r|
|00000e20| 65 67 75 6c 61 72 20 69 | 6e 74 65 72 76 61 6c 73 |egular i|ntervals|
|00000e30| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 67 65 74 | in orde|r to get|
|00000e40| 20 74 68 65 20 69 6e 73 | 65 72 74 69 6f 6e 0d 5c | the ins|ertion.\|
|00000e50| 20 70 6f 69 6e 74 20 74 | 6f 20 62 6c 69 6e 6b 2e | point t|o blink.|
|00000e60| 20 20 49 66 20 74 68 65 | 20 63 61 6c 6c 20 69 73 | If the| call is|
|00000e70| 20 6e 65 65 64 65 64 2c | 20 74 68 65 20 68 61 6e | needed,| the han|
|00000e80| 64 6c 65 20 54 45 68 64 | 6c 20 77 6f 6e 27 74 20 |dle TEhd|l won't |
|00000e90| 62 65 20 6e 69 6c 2c 0d | 5c 20 61 6e 64 20 77 69 |be nil,.|\ and wi|
|00000ea0| 6c 6c 20 62 65 20 61 20 | 68 61 6e 64 6c 65 20 74 |ll be a |handle t|
|00000eb0| 6f 20 74 68 65 20 54 45 | 20 66 69 65 6c 64 2e 20 |o the TE| field. |
|00000ec0| 20 20 57 65 20 61 72 72 | 61 6e 67 65 20 66 6f 72 | We arr|ange for|
|00000ed0| 20 74 68 69 73 20 77 6f | 72 64 20 74 6f 20 62 65 | this wo|rd to be|
|00000ee0| 0d 5c 20 63 61 6c 6c 65 | 64 20 72 65 67 75 6c 61 |.\ calle|d regula|
|00000ef0| 72 6c 79 20 62 79 20 68 | 61 76 69 6e 67 20 6f 75 |rly by h|aving ou|
|00000f00| 72 20 68 61 6e 64 6c 65 | 72 20 66 6f 72 20 6e 75 |r handle|r for nu|
|00000f10| 6c 6c 20 65 76 65 6e 74 | 73 20 20 6d 61 6b 65 20 |ll event|s make |
|00000f20| 74 68 65 20 63 61 6c 6c | 2e 0d 0d 3a 20 3f 54 45 |the call|...: ?TE|
|00000f30| 49 44 4c 45 0d 09 6e 69 | 6c 3f 3a 20 74 65 48 64 |IDLE..ni|l?: teHd|
|00000f40| 6c 20 20 3f 45 58 49 54 | 0d 09 67 65 74 3a 20 74 |l ?EXIT|..get: t|
|00000f50| 65 48 64 6c 20 20 63 61 | 6c 6c 20 54 45 69 64 6c |eHdl ca|ll TEidl|
|00000f60| 65 20 20 3b 0d 0d 3a 20 | 55 50 44 2d 45 56 09 61 |e ;..: |UPD-EV.a|
|00000f70| 70 70 57 69 6e 64 3f 20 | 20 30 45 58 49 54 20 20 |ppWind? | 0EXIT |
|00000f80| 75 70 64 2d 65 76 74 20 | 20 3b 0d 0d 3a 20 41 43 |upd-evt | ;..: AC|
|00000f90| 54 56 2d 45 56 09 61 70 | 70 57 69 6e 64 3f 20 20 |TV-EV.ap|pWind? |
|00000fa0| 30 45 58 49 54 20 20 61 | 63 74 76 2d 65 76 74 20 |0EXIT a|ctv-evt |
|00000fb0| 20 3b 0d 0d 3a 20 4e 55 | 4c 4c 2d 45 56 09 3f 54 | ;..: NU|LL-EV.?T|
|00000fc0| 45 69 64 6c 65 20 20 6e | 75 6c 6c 2d 65 76 74 20 |Eidle n|ull-evt |
|00000fd0| 20 3b 0d 0d 3a 20 4f 53 | 2d 45 56 09 09 5c 20 57 | ;..: OS|-EV..\ W|
|00000fe0| 68 65 6e 20 74 68 65 20 | 73 79 73 74 65 6d 20 73 |hen the |system s|
|00000ff0| 65 6e 64 73 20 75 73 20 | 53 75 73 70 65 6e 64 20 |ends us |Suspend |
|00001000| 61 6e 64 20 52 65 73 75 | 6d 65 20 65 76 65 6e 74 |and Resu|me event|
|00001010| 73 2c 20 69 74 20 64 6f | 65 73 6e 27 74 0d 09 09 |s, it do|esn't...|
|00001020| 09 5c 20 64 65 61 63 74 | 69 76 61 74 65 2f 61 63 |.\ deact|ivate/ac|
|00001030| 74 69 76 61 74 65 20 61 | 6e 79 20 77 69 6e 64 6f |tivate a|ny windo|
|00001040| 77 73 2e 20 20 57 65 20 | 68 61 76 65 20 74 6f 20 |ws. We |have to |
|00001050| 68 61 6e 64 6c 65 20 69 | 74 0d 09 09 09 5c 20 6f |handle i|t....\ o|
|00001060| 75 72 73 65 6c 76 65 73 | 2e 20 20 48 65 72 65 20 |urselves|. Here |
|00001070| 77 65 20 6c 6f 6f 6b 20 | 61 66 74 65 72 20 6e 6f |we look |after no|
|00001080| 6e 2d 6d 6f 64 61 6c 20 | 64 69 61 6c 6f 67 20 77 |n-modal |dialog w|
|00001090| 69 6e 64 6f 77 73 2e 0d | 09 09 09 5c 20 4f 72 64 |indows..|...\ Ord|
|000010a0| 69 6e 61 72 79 20 77 69 | 6e 64 6f 77 73 20 61 72 |inary wi|ndows ar|
|000010b0| 65 20 68 61 6e 64 6c 65 | 64 20 62 79 20 4f 53 2d |e handle|d by OS-|
|000010c0| 45 56 54 20 69 6e 20 66 | 69 6c 65 20 45 76 65 6e |EVT in f|ile Even|
|000010d0| 74 2e 0d 09 4f 53 2d 65 | 76 74 0d 09 73 75 73 70 |t...OS-e|vt..susp|
|000010e0| 65 6e 64 3f 0d 09 49 46 | 09 67 65 74 3a 20 54 45 |end?..IF|.get: TE|
|000010f0| 68 64 6c 20 20 70 75 74 | 3a 20 73 61 76 65 54 45 |hdl put|: saveTE|
|00001100| 68 64 6c 0d 09 09 6e 69 | 6c 3f 3a 20 54 45 68 64 |hdl...ni|l?: TEhd|
|00001110| 6c 0d 09 09 4e 49 46 20 | 20 67 65 74 3a 20 54 45 |l...NIF | get: TE|
|00001120| 68 64 6c 20 20 63 61 6c | 6c 20 54 45 44 65 61 63 |hdl cal|l TEDeac|
|00001130| 74 69 76 61 74 65 20 20 | 63 6c 65 61 72 3a 20 54 |tivate |clear: T|
|00001140| 45 68 64 6c 20 20 54 48 | 45 4e 0d 09 09 45 58 49 |Ehdl TH|EN...EXI|
|00001150| 54 0d 09 54 48 45 4e 0d | 09 72 65 73 75 6d 65 3f |T..THEN.|.resume?|
|00001160| 0d 09 49 46 09 67 65 74 | 3a 20 73 61 76 65 54 45 |..IF.get|: saveTE|
|00001170| 68 64 6c 20 20 70 75 74 | 3a 20 54 45 68 64 6c 0d |hdl put|: TEhdl.|
|00001180| 09 09 6e 69 6c 3f 3a 20 | 54 45 68 64 6c 20 20 4e |..nil?: |TEhdl N|
|00001190| 49 46 20 20 67 65 74 3a | 20 54 45 68 64 6c 20 20 |IF get:| TEhdl |
|000011a0| 63 61 6c 6c 20 54 45 41 | 63 74 69 76 61 74 65 20 |call TEA|ctivate |
|000011b0| 20 54 48 45 4e 0d 09 54 | 48 45 4e 20 20 20 3b 0d | THEN..T|HEN ;.|
|000011c0| 0d 0d 3a 20 45 52 52 09 | 36 30 20 62 65 65 70 20 |..: ERR.|60 beep |
|000011d0| 61 62 6f 72 74 20 20 3b | 0d 0d 5c 20 57 65 20 73 |abort ;|..\ We s|
|000011e0| 65 74 20 74 68 65 20 64 | 72 61 67 20 6c 69 6d 69 |et the d|rag limi|
|000011f0| 74 20 66 6f 72 20 64 69 | 61 6c 6f 67 73 20 61 74 |t for di|alogs at|
|00001200| 20 74 68 65 20 74 69 6d | 65 20 74 68 65 20 64 72 | the tim|e the dr|
|00001210| 61 67 20 69 73 20 64 6f | 6e 65 20 2d 20 74 68 69 |ag is do|ne - thi|
|00001220| 73 0d 5c 20 61 6c 6c 6f | 77 73 20 74 68 65 20 73 |s.\ allo|ws the s|
|00001230| 63 72 65 65 6e 20 73 69 | 7a 65 20 74 6f 20 63 68 |creen si|ze to ch|
|00001240| 61 6e 67 65 20 77 68 69 | 6c 65 20 61 20 64 69 61 |ange whi|le a dia|
|00001250| 6c 6f 67 20 69 73 20 75 | 70 21 0d 0d 72 65 63 74 |log is u|p!..rect|
|00001260| 20 20 44 52 41 47 2d 4c | 49 4d 49 54 0d 0d 3a 20 | DRAG-L|IMIT..: |
|00001270| 53 45 54 5f 44 52 41 47 | 2d 4c 49 4d 49 54 0d 09 |SET_DRAG|-LIMIT..|
|00001280| 73 63 72 65 65 6e 62 69 | 74 73 20 20 70 75 74 3a |screenbi|ts put:|
|00001290| 20 64 72 61 67 2d 6c 69 | 6d 69 74 20 20 31 30 20 | drag-li|mit 10 |
|000012a0| 31 30 20 69 6e 73 65 74 | 3a 20 64 72 61 67 2d 6c |10 inset|: drag-l|
|000012b0| 69 6d 69 74 20 20 3b 0d | 0d 0d 3a 20 45 4e 42 3f |imit ;.|..: ENB?|
|000012c0| 09 09 5c 20 28 20 2d 2d | 20 62 20 29 20 20 52 65 |..\ ( --| b ) Re|
|000012d0| 74 75 72 6e 73 20 74 72 | 75 65 20 69 66 20 57 4e |turns tr|ue if WN|
|000012e0| 44 20 63 6f 72 72 65 73 | 70 6f 6e 64 73 20 74 6f |D corres|ponds to|
|000012f0| 20 61 6e 20 65 6e 61 62 | 6c 65 64 20 0d 09 09 09 | an enab|led ....|
|00001300| 5c 09 09 09 64 69 61 6c | 6f 67 2e 0d 09 77 6e 64 |\...dial|og...wnd|
|00001310| 20 20 66 69 6e 64 2d 64 | 6c 67 20 20 4e 49 46 20 | find-d|lg NIF |
|00001320| 20 66 61 6c 73 65 20 20 | 65 78 69 74 20 20 54 48 | false |exit TH|
|00001330| 45 4e 0d 09 65 6e 61 62 | 6c 65 64 3f 3a 20 74 68 |EN..enab|led?: th|
|00001340| 69 73 5f 64 6c 67 20 20 | 3b 0d 0d 3a 20 3f 53 45 |is_dlg |;..: ?SE|
|00001350| 4c 45 43 54 09 5c 20 53 | 65 6c 65 63 74 73 20 74 |LECT.\ S|elects t|
|00001360| 68 65 20 64 69 61 6c 6f | 67 20 63 6f 72 72 65 73 |he dialo|g corres|
|00001370| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 57 4e 44 2c 20 |ponding |to WND, |
|00001380| 69 66 20 65 6e 61 62 6c | 65 64 2e 0d 09 65 6e 62 |if enabl|ed...enb|
|00001390| 3f 20 20 30 45 58 49 54 | 0d 09 77 6e 64 20 20 63 |? 0EXIT|..wnd c|
|000013a0| 61 6c 6c 20 53 65 6c 65 | 63 74 57 69 6e 64 6f 77 |all Sele|ctWindow|
|000013b0| 20 20 3b 0d 0d 3a 20 3f | 44 52 41 47 09 09 5c 20 | ;..: ?|DRAG..\ |
|000013c0| 44 72 61 67 73 20 74 68 | 65 20 64 69 61 6c 6f 67 |Drags th|e dialog|
|000013d0| 20 28 6d 61 79 62 65 20 | 6f 6e 6c 79 20 69 66 20 | (maybe |only if |
|000013e0| 65 6e 61 62 6c 65 64 29 | 2e 0d 09 65 6e 62 3f 20 |enabled)|...enb? |
|000013f0| 20 30 45 58 49 54 09 09 | 09 09 5c 20 49 6e 63 6c | 0EXIT..|..\ Incl|
|00001400| 75 64 65 20 69 66 20 79 | 6f 75 20 64 6f 6e 27 74 |ude if y|ou don't|
|00001410| 20 77 61 6e 74 20 64 69 | 73 61 62 6c 65 64 20 64 | want di|sabled d|
|00001420| 6c 67 73 20 64 72 61 67 | 67 61 62 6c 65 0d 09 73 |lgs drag|gable..s|
|00001430| 65 74 5f 64 72 61 67 2d | 6c 69 6d 69 74 0d 09 77 |et_drag-|limit..w|
|00001440| 6e 64 20 20 77 68 65 72 | 65 3a 20 66 45 76 65 6e |nd wher|e: fEven|
|00001450| 74 0d 09 61 64 64 72 3a | 20 64 72 61 67 2d 6c 69 |t..addr:| drag-li|
|00001460| 6d 69 74 20 20 63 61 6c | 6c 20 44 72 61 67 57 69 |mit cal|l DragWi|
|00001470| 6e 64 6f 77 20 20 3b 0d | 0d 3a 20 3f 43 4c 4f 53 |ndow ;.|.: ?CLOS|
|00001480| 45 09 5c 20 48 61 6e 64 | 6c 65 73 20 61 20 63 6c |E.\ Hand|les a cl|
|00001490| 69 63 6b 20 69 6e 20 74 | 68 65 20 63 6c 6f 73 65 |ick in t|he close|
|000014a0| 20 62 6f 78 20 69 66 20 | 65 6e 61 62 6c 65 64 2e | box if |enabled.|
|000014b0| 0d 09 65 6e 62 3f 20 20 | 30 45 58 49 54 0d 09 77 |..enb? |0EXIT..w|
|000014c0| 6e 64 20 20 64 75 70 20 | 20 3e 72 20 20 77 6f 72 |nd dup | >r wor|
|000014d0| 64 30 20 20 72 3e 0d 09 | 77 68 65 72 65 3a 20 66 |d0 r>..|where: f|
|000014e0| 45 76 65 6e 74 20 20 63 | 61 6c 6c 20 54 72 61 63 |Event c|all Trac|
|000014f0| 6b 47 6f 41 77 61 79 20 | 20 77 6f 72 64 30 0d 09 |kGoAway | word0..|
|00001500| 49 46 20 20 63 6c 6f 73 | 65 2d 64 6c 67 20 20 45 |IF clos|e-dlg E|
|00001510| 4c 53 45 20 20 64 72 6f | 70 20 20 54 48 45 4e 20 |LSE dro|p THEN |
|00001520| 20 3b 0d 0d 0d 3a 20 4d | 4c 44 2d 4d 4f 55 53 45 | ;...: M|LD-MOUSE|
|00001530| 2d 45 56 54 09 09 5c 20 | 28 20 72 67 6e 20 2d 2d |-EVT..\ |( rgn --|
|00001540| 20 29 0d 09 5c 20 48 61 | 6e 64 6c 65 73 20 61 20 | )..\ Ha|ndles a |
|00001550| 63 6c 69 63 6b 20 6f 6e | 20 61 20 64 69 61 6c 6f |click on| a dialo|
|00001560| 67 20 77 69 6e 64 6f 77 | 20 74 68 61 74 20 77 61 |g window| that wa|
|00001570| 73 20 6e 6f 74 20 72 65 | 70 6f 72 74 65 64 0d 09 |s not re|ported..|
|00001580| 5c 20 61 73 20 61 20 64 | 69 61 6c 6f 67 20 65 76 |\ as a d|ialog ev|
|00001590| 65 6e 74 2e 20 20 49 74 | 20 63 6f 75 6c 64 20 62 |ent. It| could b|
|000015a0| 65 20 73 65 6c 65 63 74 | 2c 20 64 72 61 67 2c 20 |e select|, drag, |
|000015b0| 67 72 6f 77 20 6f 72 20 | 63 6c 6f 73 65 2e 0d 09 |grow or |close...|
|000015c0| 5c 20 49 66 20 74 68 65 | 20 64 69 61 6c 6f 67 20 |\ If the| dialog |
|000015d0| 69 73 20 6e 6f 74 20 65 | 6e 61 62 6c 65 64 2c 20 |is not e|nabled, |
|000015e0| 77 65 20 69 67 6e 6f 72 | 65 20 74 68 65 20 63 6c |we ignor|e the cl|
|000015f0| 69 63 6b 2e 0d 09 0d 09 | 53 45 4c 45 43 54 7b 0d |ick.....|SELECT{.|
|00001600| 09 09 33 20 20 49 53 7b | 09 3f 73 65 6c 65 63 74 |..3 IS{|.?select|
|00001610| 09 09 09 09 09 09 09 7d | 45 4e 44 0d 09 09 34 20 |.......}|END...4 |
|00001620| 20 49 53 7b 09 3f 64 72 | 61 67 09 09 09 09 09 09 | IS{.?dr|ag......|
|00001630| 09 7d 45 4e 44 0d 09 09 | 35 20 20 49 53 7b 09 28 |.}END...|5 IS{.(|
|00001640| 20 41 20 64 69 61 6c 6f | 67 20 62 6f 78 20 63 61 | A dialo|g box ca|
|00001650| 6e 27 74 20 67 72 6f 77 | 21 20 29 20 09 7d 45 4e |n't grow|! ) .}EN|
|00001660| 44 0d 09 09 36 20 20 49 | 53 7b 09 3f 63 6c 6f 73 |D...6 I|S{.?clos|
|00001670| 65 09 09 09 09 09 09 09 | 7d 45 4e 44 0d 09 09 44 |e.......|}END...D|
|00001680| 45 46 41 55 4c 54 7b 20 | 20 65 72 72 0d 09 7d 53 |EFAULT{ | err..}S|
|00001690| 45 4c 45 43 54 20 20 3b | 0d 0d 0d 3a 20 4d 4f 55 |ELECT ;|...: MOU|
|000016a0| 53 45 2d 45 56 54 2b 4d | 4c 44 09 09 5c 20 28 20 |SE-EVT+M|LD..\ ( |
|000016b0| 2d 2d 20 66 61 6c 73 65 | 20 29 0d 09 69 73 5f 64 |-- false| )..is_d|
|000016c0| 6c 67 5f 65 76 74 3f 20 | 20 49 46 20 20 4d 4c 44 |lg_evt? | IF MLD|
|000016d0| 2d 65 76 74 20 20 66 61 | 6c 73 65 20 20 45 58 49 |-evt fa|lse EXI|
|000016e0| 54 20 20 54 48 45 4e 0d | 09 77 68 65 6e 3a 20 66 |T THEN.|.when: f|
|000016f0| 45 76 65 6e 74 20 20 70 | 75 74 3a 20 74 68 65 4d |Event p|ut: theM|
|00001700| 6f 75 73 65 09 09 09 5c | 20 75 70 64 61 74 65 20 |ouse...\| update |
|00001710| 63 6c 69 63 6b 20 69 6e | 74 65 72 76 61 6c 0d 09 |click in|terval..|
|00001720| 77 68 65 72 65 3a 20 66 | 45 76 65 6e 74 20 20 66 |where: f|Event f|
|00001730| 69 6e 64 2d 77 69 6e 64 | 6f 77 20 20 2d 3e 20 77 |ind-wind|ow -> w|
|00001740| 6e 64 0d 09 77 6e 64 20 | 77 69 6e 64 6f 77 4b 69 |nd..wnd |windowKi|
|00001750| 6e 64 20 20 32 20 3d 20 | 20 28 20 44 69 61 6c 6f |nd 2 = | ( Dialo|
|00001760| 67 20 77 69 6e 64 6f 77 | 3f 20 29 0d 09 49 46 09 |g window|? )..IF.|
|00001770| 09 4d 4c 44 2d 6d 6f 75 | 73 65 2d 65 76 74 0d 09 |.MLD-mou|se-evt..|
|00001780| 45 4c 53 45 09 28 6d 6f | 75 73 65 2d 65 76 74 29 |ELSE.(mo|use-evt)|
|00001790| 0d 09 54 48 45 4e 20 20 | 66 61 6c 73 65 20 20 3b |..THEN |false ;|
|000017a0| 0d 0d 0d 3a 20 4b 45 59 | 2d 45 56 54 2b 4d 4c 44 |...: KEY|-EVT+MLD|
|000017b0| 09 09 5c 20 28 20 2d 2d | 20 62 20 29 0d 09 61 63 |..\ ( --| b )..ac|
|000017c0| 74 69 76 65 5f 64 6c 67 | 20 20 6e 69 6c 50 20 3d |tive_dlg| nilP =|
|000017d0| 0d 09 4e 49 46 09 6b 65 | 79 3a 20 61 63 74 69 76 |..NIF.ke|y: activ|
|000017e0| 65 5f 64 6c 67 20 20 30 | 64 75 70 20 20 30 45 58 |e_dlg 0|dup 0EX|
|000017f0| 49 54 0d 09 09 6d 6f 64 | 73 3a 20 66 45 76 65 6e |IT...mod|s: fEven|
|00001800| 74 20 20 24 20 31 30 30 | 20 61 6e 64 0d 09 09 4e |t $ 100| and...N|
|00001810| 49 46 20 20 4d 4c 44 2d | 65 76 74 20 20 66 61 6c |IF MLD-|evt fal|
|00001820| 73 65 20 20 45 58 49 54 | 20 20 54 48 45 4e 0d 09 |se EXIT| THEN..|
|00001830| 54 48 45 4e 0d 09 6b 65 | 79 2d 65 76 74 20 20 3b |THEN..ke|y-evt ;|
|00001840| 0d 0d 0d 3a 20 55 50 44 | 2d 45 56 54 2b 4d 4c 44 |...: UPD|-EVT+MLD|
|00001850| 09 09 5c 20 28 20 2d 2d | 20 66 61 6c 73 65 20 29 |..\ ( --| false )|
|00001860| 0d 09 69 73 5f 64 6c 67 | 5f 65 76 74 3f 0d 09 49 |..is_dlg|_evt?..I|
|00001870| 46 09 4d 4c 44 2d 65 76 | 74 0d 09 09 64 72 61 77 |F.MLD-ev|t...draw|
|00001880| 42 6f 6c 64 3a 20 74 68 | 69 73 5f 64 6c 67 20 20 |Bold: th|is_dlg |
|00001890| 66 61 6c 73 65 20 20 45 | 58 49 54 0d 09 54 48 45 |false E|XIT..THE|
|000018a0| 4e 0d 09 6d 73 67 3a 20 | 66 45 76 65 6e 74 20 20 |N..msg: |fEvent |
|000018b0| 2d 3e 20 77 6e 64 0d 09 | 75 70 64 2d 65 76 20 20 |-> wnd..|upd-ev |
|000018c0| 3b 0d 0d 0d 3a 20 41 43 | 54 56 2d 45 56 54 2b 4d |;...: AC|TV-EVT+M|
|000018d0| 4c 44 09 09 5c 20 28 20 | 2d 2d 20 66 61 6c 73 65 |LD..\ ( |-- false|
|000018e0| 20 29 0d 09 6d 73 67 3a | 20 66 45 76 65 6e 74 20 | )..msg:| fEvent |
|000018f0| 20 2d 3e 20 77 6e 64 0d | 09 77 6e 64 20 77 69 6e | -> wnd.|.wnd win|
|00001900| 64 6f 77 4b 69 6e 64 20 | 20 32 20 3d 0d 09 49 46 |dowKind | 2 =..IF|
|00001910| 09 6d 6f 64 73 3a 20 66 | 45 76 65 6e 74 20 30 31 |.mods: f|Event 01|
|00001920| 20 61 6e 64 0d 09 09 49 | 46 09 09 28 20 41 63 74 | and...I|F..( Act|
|00001930| 69 76 61 74 65 20 29 0d | 09 09 09 77 6e 64 20 73 |ivate ).|...wnd s|
|00001940| 65 74 5f 54 45 68 64 6c | 0d 09 09 09 6d 73 67 3a |et_TEhdl|....msg:|
|00001950| 20 66 45 76 65 6e 74 20 | 20 66 69 6e 64 2d 64 6c | fEvent | find-dl|
|00001960| 67 0d 09 09 09 69 66 09 | 74 68 69 73 5f 64 6c 67 |g....if.|this_dlg|
|00001970| 20 2d 3e 20 61 63 74 69 | 76 65 5f 64 6c 67 0d 09 | -> acti|ve_dlg..|
|00001980| 09 09 65 6c 73 65 09 6e | 69 6c 50 20 2d 3e 20 61 |..else.n|ilP -> a|
|00001990| 63 74 69 76 65 5f 64 6c | 67 0d 09 09 09 74 68 65 |ctive_dl|g....the|
|000019a0| 6e 0d 09 09 45 4c 53 45 | 09 28 20 44 65 61 63 74 |n...ELSE|.( Deact|
|000019b0| 69 76 61 74 65 20 29 0d | 09 09 09 63 6c 65 61 72 |ivate ).|...clear|
|000019c0| 3a 20 54 45 68 64 6c 20 | 20 6e 69 6c 50 20 2d 3e |: TEhdl | nilP ->|
|000019d0| 20 61 63 74 69 76 65 5f | 64 6c 67 0d 09 09 54 48 | active_|dlg...TH|
|000019e0| 45 4e 0d 09 09 69 73 5f | 64 6c 67 5f 65 76 74 3f |EN...is_|dlg_evt?|
|000019f0| 20 20 49 46 20 20 4d 4c | 44 2d 65 76 74 20 20 66 | IF ML|D-evt f|
|00001a00| 61 6c 73 65 20 20 45 58 | 49 54 20 20 54 48 45 4e |alse EX|IT THEN|
|00001a10| 0d 09 54 48 45 4e 0d 09 | 61 63 74 76 2d 65 76 20 |..THEN..|actv-ev |
|00001a20| 20 3b 0d 0d 0d 3a 20 2b | 4d 4f 44 45 4c 45 53 53 | ;...: +|MODELESS|
|00001a30| 0d 09 58 54 53 7b 09 6e | 75 6c 6c 2d 65 76 09 09 |..XTS{.n|ull-ev..|
|00001a40| 09 6d 6f 75 73 65 2d 65 | 76 74 2b 6d 6c 64 09 6e |.mouse-e|vt+mld.n|
|00001a50| 75 6c 6c 2d 65 76 09 09 | 09 6b 65 79 2d 65 76 74 |ull-ev..|.key-evt|
|00001a60| 2b 6d 6c 64 0d 09 09 09 | 6e 75 6c 6c 2d 65 76 09 |+mld....|null-ev.|
|00001a70| 09 09 6b 65 79 2d 65 76 | 74 2b 6d 6c 64 09 09 75 |..key-ev|t+mld..u|
|00001a80| 70 64 2d 65 76 74 2b 6d | 6c 64 09 09 64 69 73 6b |pd-evt+m|ld..disk|
|00001a90| 2d 65 76 74 0d 09 09 09 | 61 63 74 76 2d 65 76 74 |-evt....|actv-evt|
|00001aa0| 2b 6d 6c 64 09 6e 75 6c | 6c 2d 65 76 09 09 09 6e |+mld.nul|l-ev...n|
|00001ab0| 75 6c 6c 2d 65 76 09 09 | 09 6e 75 6c 6c 2d 65 76 |ull-ev..|.null-ev|
|00001ac0| 0d 09 09 09 6e 75 6c 6c | 2d 65 76 09 09 09 6e 75 |....null|-ev...nu|
|00001ad0| 6c 6c 2d 65 76 09 09 09 | 6e 75 6c 6c 2d 65 76 09 |ll-ev...|null-ev.|
|00001ae0| 09 09 4f 53 2d 65 76 0d | 09 09 09 6e 75 6c 6c 2d |..OS-ev.|...null-|
|00001af0| 65 76 09 09 09 6e 75 6c | 6c 2d 65 76 09 09 09 6e |ev...nul|l-ev...n|
|00001b00| 75 6c 6c 2d 65 76 09 09 | 09 6e 75 6c 6c 2d 65 76 |ull-ev..|.null-ev|
|00001b10| 0d 09 09 09 6e 75 6c 6c | 2d 65 76 09 09 09 6e 75 |....null|-ev...nu|
|00001b20| 6c 6c 2d 65 76 09 09 09 | 6e 75 6c 6c 2d 65 76 09 |ll-ev...|null-ev.|
|00001b30| 09 09 48 4c 2d 65 76 74 | 20 20 7d 0d 09 70 75 74 |..HL-evt| }..put|
|00001b40| 3a 20 66 45 76 65 6e 74 | 0d 5c 09 5b 27 5d 20 3f |: fEvent|.\.['] ?|
|00001b50| 54 45 69 64 6c 65 20 2d | 3e 20 54 45 69 64 6c 65 |TEidle -|> TEidle|
|00001b60| 0d 09 73 6c 65 65 70 74 | 69 63 6b 73 20 30 3c 20 |..sleept|icks 0< |
|00001b70| 20 49 46 20 20 32 30 20 | 20 45 4c 53 45 20 20 73 | IF 20 | ELSE s|
|00001b80| 6c 65 65 70 74 69 63 6b | 73 20 20 32 30 20 6d 69 |leeptick|s 20 mi|
|00001b90| 6e 20 20 54 48 45 4e 0d | 09 2d 3e 20 73 6c 65 65 |n THEN.|.-> slee|
|00001ba0| 70 74 69 63 6b 73 20 20 | 3b 0d 0d 0d 65 6e 64 6c |pticks |;...endl|
|00001bb0| 6f 61 64 0d 0d 5c 20 54 | 45 53 54 49 4e 47 3a 0d |oad..\ T|ESTING:.|
|00001bc0| 0d 5c 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.\ =====|========|
|00001bd0| 3d 3d 3d 3d 3d 20 22 4d | 4c 44 20 74 65 73 74 22 |===== "M|LD test"|
|00001be0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 20 3d 3d 3d 3d | dialog |box ====|
|00001bf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001c00| 3d 3d 3d 3d 3d 3d 0d 0d | 20 20 20 20 36 09 64 69 |======..| 6.di|
|00001c10| 61 6c 6f 67 2b 09 44 31 | 09 09 32 20 73 65 74 62 |alog+.D1|..2 setb|
|00001c20| 6f 6c 64 3a 20 64 31 0d | 20 20 20 20 34 09 64 69 |old: d1.| 4.di|
|00001c30| 61 6c 6f 67 2b 09 44 32 | 0d 0d 0d 3a 20 51 51 51 |alog+.D2|...: QQQ|
|00001c40| 09 09 32 30 20 62 65 65 | 70 20 20 3b 0d 3a 20 57 |..20 bee|p ;.: W|
|00001c50| 57 57 09 09 20 31 20 62 | 65 65 70 20 20 3b 0d 3a |WW.. 1 b|eep ;.:|
|00001c60| 20 5a 5a 5a 09 09 2e 22 | 20 75 73 65 72 69 74 65 | ZZZ..."| userite|
|00001c70| 6d 20 68 69 74 22 20 63 | 72 20 20 3b 0d 0d 0d 3a |m hit" c|r ;...:|
|00001c80| 20 55 53 45 52 2d 3e 54 | 45 4d 50 52 45 43 54 09 | USER->T|EMPRECT.|
|00001c90| 5c 20 28 20 68 64 6c 20 | 77 3a 69 74 65 6d 23 20 |\ ( hdl |w:item# |
|00001ca0| 2d 2d 20 62 20 29 0d 09 | 69 2d 3e 6c 20 73 77 61 |-- b )..|i->l swa|
|00001cb0| 70 20 20 66 69 6e 64 2d | 64 6c 67 0d 09 49 46 09 |p find-|dlg..IF.|
|00001cc0| 09 69 74 65 6d 48 61 6e | 64 6c 65 3a 20 74 68 69 |.itemHan|dle: thi|
|00001cd0| 73 5f 64 6c 67 20 20 64 | 72 6f 70 20 20 74 72 75 |s_dlg d|rop tru|
|00001ce0| 65 0d 09 45 4c 53 45 09 | 28 20 69 74 65 6d 23 20 |e..ELSE.|( item# |
|00001cf0| 29 20 20 64 72 6f 70 20 | 20 66 61 6c 73 65 0d 09 |) drop | false..|
|00001d00| 54 48 45 4e 20 20 3b 0d | 0d 0d 3a 70 72 6f 63 20 |THEN ;.|..:proc |
|00001d10| 20 44 52 41 57 5f 55 53 | 45 52 0d 09 75 73 65 72 | DRAW_US|ER..user|
|00001d20| 2d 3e 74 65 6d 70 52 65 | 63 74 0d 09 49 46 09 22 |->tempRe|ct..IF."|
|00001d30| 20 48 65 6c 6c 6f 22 20 | 20 74 65 6d 70 52 65 63 | Hello" | tempRec|
|00001d40| 74 20 31 20 6d 61 6b 65 | 69 6e 74 20 63 61 6c 6c |t 1 make|int call|
|00001d50| 20 74 65 78 74 42 6f 78 | 0d 09 09 64 72 6f 70 53 | textBox|...dropS|
|00001d60| 68 61 64 6f 77 3a 20 74 | 65 6d 70 52 65 63 74 0d |hadow: t|empRect.|
|00001d70| 09 54 48 45 4e 20 20 20 | 3b 70 72 6f 63 0d 0d 0d |.THEN |;proc...|
|00001d80| 0d 3a 20 43 4c 4f 53 45 | 31 20 20 20 20 63 6c 6f |.: CLOSE|1 clo|
|00001d90| 73 65 3a 20 64 31 20 20 | 3b 0d 3a 20 43 4c 4f 53 |se: d1 |;.: CLOS|
|00001da0| 45 32 20 20 20 20 63 6c | 6f 73 65 3a 20 64 32 20 |E2 cl|ose: d2 |
|00001db0| 20 3b 0d 0d 58 54 53 7b | 20 20 71 71 71 20 77 77 | ;..XTS{| qqq ww|
|00001dc0| 77 20 63 6c 6f 73 65 31 | 20 74 6f 67 69 74 65 6d |w close1| togitem|
|00001dd0| 20 20 7a 7a 7a 20 20 7a | 7a 7a 20 20 7d 09 33 30 | zzz z|zz }.30|
|00001de0| 30 20 20 69 6e 69 74 3a | 20 64 31 0d 58 54 53 7b |0 init:| d1.XTS{|
|00001df0| 20 20 71 71 71 20 77 77 | 77 20 63 6c 6f 73 65 32 | qqq ww|w close2|
|00001e00| 20 20 7a 7a 7a 09 09 09 | 09 7d 09 33 30 31 20 20 | zzz...|.}.301 |
|00001e10| 69 6e 69 74 3a 20 64 32 | 0d 0d 3a 20 47 4f 0d 09 |init: d2|..: GO..|
|00001e20| 22 20 4d 4c 44 74 65 73 | 74 2e 72 73 72 63 22 20 |" MLDtes|t.rsrc" |
|00001e30| 6f 70 65 6e 72 65 73 66 | 69 6c 65 09 09 5c 20 2a |openresf|ile..\ *|
|00001e40| 2a 2a 0d 09 2b 6d 6f 64 | 65 6c 65 73 73 0d 09 67 |**..+mod|eless..g|
|00001e50| 65 74 6e 65 77 3a 20 64 | 31 20 20 67 65 74 6e 65 |etnew: d|1 getne|
|00001e60| 77 3a 20 64 32 0d 09 5b | 27 5d 20 64 72 61 77 5f |w: d2..[|'] draw_|
|00001e70| 75 73 65 72 20 64 75 70 | 20 36 20 73 65 74 55 73 |user dup| 6 setUs|
|00001e80| 65 72 50 72 6f 63 3a 20 | 64 31 20 20 64 75 70 20 |erProc: |d1 dup |
|00001e90| 35 20 73 65 74 55 73 65 | 72 50 72 6f 63 3a 20 64 |5 setUse|rProc: d|
|00001ea0| 31 0d 09 34 20 73 65 74 | 55 73 65 72 50 72 6f 63 |1..4 set|UserProc|
|00001eb0| 3a 20 64 32 20 20 3b 0d | 0d 3a 20 7a 7a 20 20 63 |: d2 ;.|.: zz c|
|00001ec0| 6c 6f 73 65 3a 20 64 31 | 20 20 63 6c 6f 73 65 3a |lose: d1| close:|
|00001ed0| 20 64 32 20 20 2d 6d 6f | 64 65 6c 65 73 73 20 20 | d2 -mo|deless |
|00001ee0| 3b 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.......|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001f10| 3f 3c 00 01 a9 ee 20 6f | 00 04 20 80 4e fa 00 0e |?<.... o|.. .N...|
|00001f20| 20 6f 00 04 20 2f 00 08 | 42 67 a9 ee 20 5f 50 4f | o.. /..|Bg.. _PO|
|00001f30| 07 44 69 61 6c 6f 67 2b | 02 00 00 00 50 61 72 74 |.Dialog+|....Part|
|00001f40| 53 49 54 78 00 00 00 00 | 00 00 00 00 00 01 83 df |SITx....|........|
|00001f50| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 ab 06 23 60 00 00 | 00 00 00 00 01 1e 21 43 |....#`..|......!C|
|00001f80| 00 0c 60 c4 de fc 00 10 | 20 3a 00 2a 67 04 20 40 |..`.....| :.*g. @|
|00001f90| a0 23 2f 38 01 18 21 f8 | 02 a6 01 18 42 a7 61 00 |.#/8..!.|....B.a.|
|00001fa0| 00 ae 21 df 01 18 61 10 | 20 6b 01 92 42 ab 01 92 |..!...a.| k..B...|
|00001fb0| a0 23 4e 75 00 00 00 00 | 24 6b 01 aa 78 00 20 52 |.#Nu....|$k..x. R|
|00001fc0| 43 e8 ff fc 52 44 b8 50 | 62 7c 50 49 4a 51 66 f4 |C...RD.P|b|PIJQf.|
|00001fd0| 4a 69 00 02 67 04 4a 03 | 67 ea 53 50 72 00 32 29 |Ji..g.J.|g.SPr.2)|
|00001fe0| 00 06 41 f0 10 00 74 01 | d4 10 41 f0 20 00 d4 10 |..A...t.|..A. ...|
|00001ff0| 5a 42 3f 02 59 4f 2f 0a | 2f 01 42 a7 2f 02 2f 0f |ZB?.YO/.|/.B././.|
|00002000| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00002010| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00002020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+